<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://xmlns.jcp.org/jsf/core">

    <h:form>
        <p:growl id="messageGeneral" showDetail="true" sticky="false" />
        <h:panelGrid columns="2" width="100%">
            <p:outputLabel value="Имя" for="txtFirstName"/>
            <p:inputText id="txtFirstName" label="Имя" style="width: 98%"
                         value="#{mbVFirstName.newName}">
            </p:inputText>
            <h:panelGroup/>            
            <h:panelGroup layout="block" style="text-align: right">
                <p:commandButton value="Сохранить" 
                                 action="#{mbVFirstName.registration()}" 
                                 oncomplete="PF('dialogNewFirstName').hide();"
                                 update="messageGeneral">                    
                </p:commandButton>
                <p:commandButton value="Отменить" action="#{mbVFirstName.cancel()}"
                                 oncomplete="PF('dialogNewFirstName').hide();" />
            </h:panelGroup>  
        </h:panelGrid>
    </h:form>
</html>

